package mercede.allTable;

import java.io.Serializable;
import mercede.allDTOs.ExcursionDTO;

import javax.persistence.*;


/**
 * The persistent class for the excursion database table.
 * 
 */
@Entity
@NamedQueries({@NamedQuery(name="Excursion.findAll", query="SELECT e FROM Excursion e"),
	@NamedQuery(name="Excursion.FIND_BY_DEST", query="SELECT e FROM  Excursion e WHERE e.eCity=:ecity")})
public class Excursion implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int eID;

	private String eCity;

	private String eDescription;

	private String eName;

	private String ePrice;

	public Excursion() {
		super();
	}
	
	public Excursion(ExcursionDTO excursiondto) {
		
		this.eID=excursiondto.geteID();
		this.eDescription=excursiondto.geteDescription();
		this.eName=excursiondto.geteName();
		this.ePrice=excursiondto.getePrice();
	}

	public int getEID() {
		return this.eID;
	}

	public void setEID(int eID) {
		this.eID = eID;
	}

	public String getECity() {
		return this.eCity;
	}

	public void setECity(String eCity) {
		this.eCity = eCity;
	}

	public String getEDescription() {
		return this.eDescription;
	}

	public void setEDescription(String eDescription) {
		this.eDescription = eDescription;
	}

	public String getEName() {
		return this.eName;
	}

	public void setEName(String eName) {
		this.eName = eName;
	}

	public String getEPrice() {
		return this.ePrice;
	}

	public void setEPrice(String ePrice) {
		this.ePrice = ePrice;
	}

	@Override
	public String toString() {
		return "Excursion [eID=" + eID + ", eCity=" + eCity + ", eDescription="
				+ eDescription + ", eName=" + eName + ", ePrice=" + ePrice
				+ "]";
	}
	
	

}